<template>
  <div class="loading">
    <i></i>
    <i></i>
    <i></i>
  </div>
</template>
<style lang="less" scoped>

.loading{
  display: flex;
  justify-content: center;
  i{
    width: 4px;
    height: 20px;
    margin-left: 5px;
    transform-origin: left bottom ;
    transform: ro;
    background-color: red;
    animation: loading 1s 0s infinite;
    &:nth-child(2){
      animation-delay: -.5s;
    }
    &:nth-child(3){
      animation-delay: -0.2s;
    }
  }
}
@keyframes loading {
  from{
    transform: scaleY(1.2);
  }
  to{
    transform: scaleY(0.2);
  }
 
}
</style>